#!/usr/bin/env node

const Koa = require('koa');
const log = console.log;
const logger = require('./middleware/logger.js')
const app = new Koa();
app.listen(8080);

app.use(logger);

app.use((ctx, next) => {  //M-hello
    log('hello Koa!');
    ctx.body = 'ok';
});

